using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.Common;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using AMStudio.Common;

namespace AMStudio.UserInterface
{
    public partial class AddUsersForm :AWinFormShell
    {
        public string UserName
        {
            get { return this.txtUserName.Text; }
        }
        public int UserGroup
        {
            get { return this.cmbUserGroup.SelectedIndex; }
        }
        public string Language
        {
            get { return this.comboBoxEx1.SelectedItem.ToString(); }
        }
 
        public AddUsersForm()
        {

            InitializeComponent();
        }

        private void LoginForm_Load(object sender, EventArgs e)
        {
            this.UIName = this.Name;
            this.cmbUserGroup.SelectedIndex = 2;
            this.comboBoxEx1.SelectedIndex = 1;
            this.ActiveControl = this.txtUserName;
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            if ((this.txtUserName.Text==null)||(this.txtUserName.Text.Trim()==""))
            {
                //WrongForm.Show("The user name and group should not be empty");
            }
            else
            {               
                this.DialogResult = DialogResult.OK;
            }
        }
              
    }
}